document.getElementById('close').addEventListener('click', () => {
  window.api.close()
})

window.api.closeMsg((value) => {
  alert(value)
})

window.api.message((value) => {
  console.log(value)
})

document.getElementById('upload').addEventListener('click', async () => {
  const filePath = await window.api.upload()
  alert('filePath:'+ filePath)
})
